
#include "plot2Dtypes.h"

AxisRange* axis_range_new (void)
{
	AxisRange* new_axis_range = (AxisRange*) malloc(sizeof(AxisRange));

	new_axis_range->xmin_entry = NULL;
	new_axis_range->xmax_entry = NULL;

	return new_axis_range;
}


AxisRange* axis_range_new_with_entries(GtkEntry* xmin_entry, GtkEntry* xmax_entry)
{
	AxisRange* new_axis_range = axis_range_new();

	new_axis_range->xmin_entry = xmin_entry;
	new_axis_range->xmax_entry = xmax_entry;
	
	return new_axis_range;
}

void axis_range_set(AxisRange* axis_range, GtkEntry* xmin_entry, GtkEntry* xmax_entry)
{
	axis_range->xmin_entry = xmin_entry;
	axis_range->xmax_entry = xmax_entry;
}

void axis_range_get(AxisRange* axis_range, GtkEntry* xmin_entry, GtkEntry* xmax_entry)
{
	xmin_entry = axis_range->xmin_entry;
	xmax_entry = axis_range->xmax_entry;
}

void axis_range_destroy(AxisRange* axis_range)
{
	free(axis_range);
}



